import Home from '../../components/routerView/home.vue'
import Content from '../../components/routerView/content.vue'
export default [{
        path: '/permission',
        name: '权限管理',
        component: Home,
        redirect: '/permission/home',
        children: [{
                path: 'home',
                name: '权限首页',
                icon: 'home',
                hidden: true,
                component: function(resolve){
                    require(['../../modules/permission/index.vue'],resolve)
                }
            },
            {
                path: 'admin',
                name: '管理员管理',
                icon: 'user-o',
                component: Content,
                redirect: '/permission/admin/list',
                children: [{
                    path: 'list',
                    name: '管理员列表',
                    component: function(resolve){
                        require(['../../modules/permission/admin/list.vue'],resolve)
                    }
                }]
            },
            {
                path: 'application',
                name: '应用管理',
                icon: 'retweet',
                component: Content,
                redirect: '/permission/application/list',
                children: [{
                    path: 'list',
                    name: '应用列表',
                   component: function(resolve){
                        require(['../../modules/permission/application/list.vue'],resolve)
                    }
                }]
            }
        ]
    },

]